package com.acme.task5;

public class TextModifier {

	public static final String DEF_STR = "12asd23as+-12asda";
	
	public static void main(String[] args) {
		String str = TextModifier.DEF_STR;
		if (args.length == 1) {
			str = args[0];
		}
		AnalysisString(str);
	}
	
	public static void AnalysisString(String str) {
		
		for (int i = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			
			if(Character.isDigit(charAtIndex))
				continue;
			
			if(charAtIndex == '+' || charAtIndex == '-')
				System.out.print(charAtIndex);
				
			System.out.print(charAtIndex);
			
		}
	}

}
